README file for "The Politicization of Bureaucrats: Evidence from Brazil"
Authors: Anderson Frey <anderson.frey@rochester.edu> & Rogerio Santarrosa <rogeriobs2@insper.edu.br>	

**** OPERATING SYSTEM ****
Microsoft Windows 11 Pro, version 10.0.22621

**** SOFTWARE ****
Results are replicable using R (version 4.2.1), and R studio (v. 2024.04.2).
Rpackages used: data.table, dplyr, rdrobust, lfe, ggplot2, stringr, stringi, gridExtra, fastDummies, boot, lubridate


Please set your working directory as the one in which this folder appears. 
to set the path type into R: setwd("PATH_NAME") 


**********************
TABLE OF CONTENTS
**********************

DATA FILES FOR PRODUCING FIGURES AND TABLES

	1. data_main.csv: 		main dataset used to produce most tables and figures in both the paper and the appendix -- observations are at the municipality-coalition level.
	2. data_cadunico.csv: 		dataset with demographic information on individual CadUnico interviewers, it is used to produce several Tables in both the article and the appendix -- observations are at the interviewer level (not identified).
	3. data_bureau.csv: 		dataset with demographic information on individual municipal bureaucrats, it is used to produce several Tables in both the article and the appendix -- observations are at the bureaucrat level (not identified).
	4. data_matched.csv: 		dataset with demographic information on individual CadUnico interviewers and its match in the bureaucracy, it is used to produce Table C8 in the appendix -- observations are at the interviewer level (not identified), only for the 86% that had a match in the other bureaucracy.
	5. data_partisans.csv: 		dataset used to produce column 3 of Tables C5 and C6 in the appendix -- observations are at the municipality-coalition-date level.
	6. data_partisanship.csv: 	dataset used to produce Figure 2 in the article -- observations are at the party-year level.


		
R SCRIPT FILES 

	1. R_Article:    	Runs all tables and figures in the article. 
	2. R_Appendix:    	Runs all tables and figures in the online appendix.

	
Codebook

	Codebook.pdf: Includes the description of all variables in the data files listed in item 1, and their respective sources.
